<?php
function node_mergy($node,$access){
   
   if(is_array($access)){
   	  foreach ($node as $k=>$v) {
   	  	in_array($v['id'],$access)?$node[$k]['access']=1:$node[$k]['access']=0;
   	  }
   } 
   import('Class.Category',APP_PATH);
   return Category::UnlimiteForLayer($node);
}




?>